{include file="header.tpl"}

<div id="block_featured" class="block">
	<img src="images/theme/ribbon.png" class="ribbon"/>
	<span class="ribbon_text">{$title}</span>
	
    <div class="block_inside">
	
		{$info_action}
				
		{if isset($smarty.session.user_id)}
		<form action="new_practice.php" method="post" class="form" id="new_practice">
			<fieldset>
				<legend>Formularz dodania nowej praktyki</legend>
					{if $smarty.session.user_type == 'user_company'}
						{foreach item=company from=$smarty.session.company_info}
						{/foreach}
						<input type="hidden" name="company_id" id="company_id" value="{$company.id}"/>
						<p>
							<label for="company_name" >Nazwa firmy</label>
							{$company.name}
						</p>
						
						<p>
							<label for="company_address" >Adres</label>
							{$company.address}
						</p>
						
						<p>
							<label for="company_phone" >Telefon</label>
							{$company.phone}
						</p>
						
						<p>
							<label for="company_site" >Strona www</label>
							<a href="http:\\{$company.site}" target=_blank>{$company.site}</a>
						</p>
						
						<p>
							<label for="company_person" >Osoba reprezentująca</label>
							<select id="company_person" name="company_person" >
								{foreach item=person from=$company_persons} 
									<option value="{$person.id}">{$person.name} {$person.surname}</option>
								{/foreach}
							</select>
						</p>
					{/if}
						<p>
							<label for="date_start" >Od dnia (RRRR-MM-DD)</label>
							<input type="text" id="date_start" name="date_start" title="Od dnia"/>
						</p>
					
						<p>
							<label for="date_end" >Do dnia (RRRR-MM-DD)</label>
							<input type="text" id="date_end" name="date_end" title="Do dnia"/>
						</p>
					
						<p>
							<label for="amount" >Ilość miejsc</label>
							<input type="text" id="amount" name="amount" title="Ilość miejsc"/>
						</p>
					
						<p>
							<label for="paid" >Praktyka płatna?</label>
							<input type="checkbox" id="paid" name="paid" />
						</p>
						
						<p>
							<label for="duties" >Zakres obowiązków</label>
							<textarea name="duties" id="duties" rows="5" cols="20" ></textarea>
						</p>
					
						<p>
							<label for="requirements" >Wymagania</label>
							<textarea name="requirements" id="requirements" rows="5" cols="20" ></textarea>
						</p>
					
						<p>
							<label for="technology" >Technologie</label><br/>
							<div style="padding-left:110px;width:230px">
							{foreach item=tech from=$technologies}
								<input type="checkbox" name ="tech[]" id="tech_id_{$tech.id}" value="{$tech.technology}" /> {$tech.technology} <br/>
							{/foreach}
							</div>
						</p>
						
								

					{if $smarty.session.user_type == 'user_student' }
					
					{/if}
					
			</fieldset>
			<p class="submit"><button type="submit" id="send" name="send">Dodaj</button></p>
		</form>
		{/if}
	</div>
</div>
{include file="footer.tpl"}